package com.yitong.equipment.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.yitong.equipment.R
import com.yitong.equipment.entity.other.HomeTop

class HomeMenuAdapter(data: MutableList<HomeTop>? = null) : BaseQuickAdapter<HomeTop, BaseViewHolder>(R.layout.item_home_menu, data) {

    override fun convert(holder: BaseViewHolder, item: HomeTop) {
        holder.setText(R.id.tvName,item.name)
        holder.setImageResource(R.id.imgType,item.drawable)
    }

}